export default {
  data() {
    return {
      pages: {
        pageSize: 10,
        currPage: 1,
      },
      loading: false,
      finished: false,
      isEmpty: false
    }
  },
  methods: {

    resetInit() {
      this.pages = {
        pageSize: 10,
        currPage: 1,
      }
    //  this.loading = false;
    //  this.finished = false;
   //   this.isEmpty = false;
    },

    // 全部 加载完了
    isFinished() {
      this.loading = false;
      this.finished = true;
    },
    // 还没有加载完成
    nextPage() {
      this.pages.currPage += 1;
      this.finished = false;
      this.loading = false;
    }
  }
}
